/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package paises;

import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;

/**
 *
 * @author Sigifredo Escobar Gómez
 */
public class PaisHelper {

    Session session = null;

    public PaisHelper()
    {
        this.session = HibernateUtil.getSessionFactory().getCurrentSession();

/*
        Configuration configuration = new Configuration();
        SessionFactory  sessionFactory = configuration.configure().buildSessionFactory();
        Session session = sessionFactory.openSession();
        Transaction transaction = session.beginTransaction();
        Query query = session.createQuery("select a from Pais");
        query.executeUpdate();
        transaction.commit();
*/
    }

}